<%@ tag pageEncoding="UTF-8" %>
<%@ attribute name="id" required="true"%>
<%@ attribute name="name" required="false"%>
<%@ attribute name="caption" required="true"%>

<div class="form-group">
    <label for="${id}" class="col-sm-4 control-label">${caption}</label>
    <div class="col-sm-8">
        <select class="form-control" id="${id}" name="${empty name ? id : name}">
            <jsp:doBody/>
        </select>
    </div>
</div>